import request from '@/utils/request'
// 用户登录
export const userLoginApi = (params = {}) => request.post('/api/index/login', params)
// 获取用户 可以访问 权限 数据  管理员
export const bannerApi = (params, config = {}) => request.post('/api/index/get_banner', params)
// 发送邮件
export const sendEmailApi = (params, config = {}) => request.post('/api/index/send_email', params)
/* 消息公告列表 */
export const noticeListApi = (params, config = {}) => request.post('/api/index/notice', params)
/* 消息公告详情 */
export const noticedetailApi = (params, config = {}) => request.post('/api/index/noticedetail', params)
/* 获取个人信息 */
export const UserInfoApi = (params, config = {}) => request.post('/api/user/index', params)
/* 获取实名认证信息 */
export const realNameApi= (params, config = {}) => request.post('/api/user/authinfo', params)
/* 实名认证提交信息 */
export const realSubmitApi= (params, config = {}) => request.post('/api/user/authadd', params)
/* 修改登录密码 */
export const changeLoginApi = (data) => { return request({ url: '/api/user/update_pass', method: 'post', data }) }
//export const changeLoginApi= (params, config = {}) => request.post('/api/user/update_pass', params)
/* 修改交易密码 */
export const changeApi= (params, config = {}) => request.post('/api/user/update_securitypass', params)
// 注册
export const userRegisterApi = (params,config = {}) => request.post('/api/index/reg', params)
// 找回密码
export const userFindApi = (params,config = {}) => request.post('/api/index/findpwd', params)
/* 上传图片 */
export const uploadPicApi = (params,config = {}) => request.post('/api/common/upload', params)
// 获取订单列表
export const orderListApi = (params,config = {}) => request.post('/api/product/orderlist', params)
// 获取反馈列表
export const feedbackListApi = (params,config = {}) => request.post('/api/user/fankui_list', params)
/* 获取银行卡列表 */
export const BankListApi = (params,config = {}) => request.post('/api/user/wallet', params)
/* 删除银行卡列表 */
export const delBankApi = (params,config = {}) => request.post('/api/user/wallet_del', params)
/* 出金记录 */
export const outMoneyApi = (params,config = {}) => request.post('/api/user/withdrawal_list', params)

/* 添加银行卡 */
export const addBankApi = (params,config = {}) => request.post('/api/user/save_wallet', params)
/* 获取钱包类型 */
export const getWalletApi = (params,config = {}) => request.post('/api/index/get_withdrawal_channel', params)
/* 提现-添加 */
export const withdrawalApi = (params,config = {}) => request.post('/api/user/withdrawal', params)
/* 获取银行卡详情 */
export const BankdetailApi = (params,config = {}) => request.post('/api/user/wallet_info', params)

// 订单详情
export const orderDetailApi = (params,config = {}) => request.post('/api/product/orderinfo', params)
// 消息公告详情
export const noticeDetailApi = (params,config = {}) => request.post('/api/index/noticedetail', params)
// 反馈详情
export const feedbackDetailApi = (params,config = {}) => request.post('/api/user/fankui_info', params)
// 提交反馈
export const feedbackSubmitApi = (params,config = {}) => request.post('/api/user/pull_fankui', params)
// 充值列表
export const rechargeApi = (params,config = {}) => request.post('/api/user/recharge_list', params)

/* 获取配置 */
export const settingApi = (params,config = {}) => request.post('/api/index/get_setting', params)
/* 获取充值网络 */
export const accountInApi = (params,config = {}) => request.post('/api/index/get_recharge_channel', params)
/* 充值 */
export const rechargeInApi = (params,config = {}) => request.post('/api/user/recharge', params)
/* 获取转账通道 */
export const getRechargePayApi = (params,config = {}) => request.post('/api/index/get_recharge_payment', params)
export const getstatusApi = (params,config = {}) => request.post('/api/index/select_type', params)
// 提现列表
export const withdrawApi = (params,config = {}) => request.post('/api/user/withdrawal_list', params)

